<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
import Edit from "../edit/index";
import Asset from "../assetManage/index.js";
export default {
  mixins: [
    Vue.prototype.$vFN.Mixins.Base,
    Vue.prototype.$vFN.Mixins.Page,
    Vue.prototype.$vFN.Mixins.Table,
  ],
  data() {
    return {
        appWindow: window,
      // 页面接口地址
      apiUrl: {
        list: "store/integral/index",
        delete: "store/integral/del",
      },
      // 表格查询数据
      mixinTable_tableSearchData: {
        name: "",
      },
      // 表格数据
      // tableData: [],
      // 表格数据删除展示结构
      tableDeleteConfig: {
        columns: [
          {
            label: "类型名称",
            prop: "name",
            type: "",
          },
        ],
      },
    };
  },
  methods: {
    // 打开添加/修改
    editBoxOpen(params_) {
      Edit.init({
        mixinEdit_editType: params_.type,
        id: params_.id,
        mixinEdit_parent: this,
      });
    },
    // 初始化
    async init() {
      this.mixinTable_refreshData();
    },

    toSet(params_) {
      Asset.init({
        typeId: params_.typeId,
        typeName: params_.typeName,
        onSuccess: (res) => {
          // this.mixinTable_refreshData();
        },
      });
    },
  },
  mounted() {
    this.init();
  },
  activated() {},
};
</script>
